package com.liuche.web.api;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.liuche.service.erp.system.HelloWorldService;
@Controller
@Path("/api/helloWorld")  
public class HelloWorldApi {
	@Autowired
	private HelloWorldService helloWorldService;
	   @GET  
	   @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})  
	   @Path("/getUserInfo")  
	   public Response  getUserInfo()  
	   { 
		   Object[] obj=helloWorldService.getUserDepartmentList(null, null, 1, 20);
	      return Response.ok(obj, MediaType.APPLICATION_JSON).build();
	   }  
}
